//
//  UIImageView+HHAddition.m
//  Addition
//
//  Created by 花花 on 2017/1/17.
//  Copyright © 2017年 花花. All rights reserved.
//

#import "UIImageView+HHAddition.h"
#import "UIImage+HHAddition.h"
#import "UIImageView+WebCache.h"

@implementation UIImageView (HHAddition)


- (void)setHeader:(NSString *)url{
    
    UIImage *placeholder = [[UIImage imageNamed:@"user_header_placeholder"] circlrimage];
    [self sd_setImageWithURL:[NSURL URLWithString:url] placeholderImage:placeholder completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
        self.image = image?[image circlrimage]:placeholder;
        
    }];
    
    
}
@end
